package indi.zhifa.expshare.class001.chemicalmatch.util.openai.embding.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class EmbeddingRequest {
    String model = "text-embedding-3-small";
    List<String> questions = new ArrayList<>();
    String keyword = "G7dK9LpQ2xT8vZaW3rN5sHmJ6qX1yB4C";

    public void initWithText(String pText){
        questions.add(pText);
    }

    public List<String> initWithText(List<String> pText){
        for(String text:pText){
            if(null != text && !text.isEmpty()){
                questions.add(text);
            }
        }
        return questions;
    }
}
